package com.team.arms.xitong.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author huazige
 * @Date 2022/6/25 11:25
 * @Version 1.0
 */
@Data
@ApiModel("系统管理-日志")
public class LogVo {

    @ApiModelProperty("日志编号")
    @TableId(value = "log_id", type = IdType.ASSIGN_ID)
    private String logId;

    @ApiModelProperty("访问表编号")
    @TableId(value = "access_id", type = IdType.ASSIGN_ID)
    private String accessId;

    @ApiModelProperty("日志类型")
    private String logType;

    @ApiModelProperty("登录账号")
    private String username;

    @ApiModelProperty("登录地点")
    private String loginPlace;


    @ApiModelProperty("访问时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime accessTime;
}
